{{include file="header.tpl"}}

<!--content-->
<div class="adbox">
    <div class="w1002 login-box">
        <div class="login">
        </div>
         <form id="form1" name="form1" method="post" action="index.php?{{$TIN_CTL}}=user&{{$TIN_ACT}}=ChkLogin">
        <table width="310" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td align="center" valign="middle" class="adbox_td01">欢迎登录农易贷理财！</td>
            </tr>
        <tr>
            <td height="48"><input name="username" type="text" id="username" placeholder="请输入用户名" class="adbox_text" /></td>
            </tr>
        <tr>
            <td height="48"><input name="password" type="password" id="password" placeholder="请输入密码"  class="adbox_text" /></td>
            </tr>
        <tr>
            <td height="48"><input name="checkCode" type="text" id="checkCode" placeholder="请输入验证码" class="adbox_text" style="width:115px;" /><img id="chkcode" src="res/vcode.php" style="cursor:pointer" width="60" height="25"></td>
            </tr>
        <tr>
            <td width="140" height="48" valign="middle" class="adbox_td02"><input name="" type="image" id="btnlogin"  src="res/images/text_btn.jpg" class="adbox_image" /><a href="#">忘记密码？</a></td>
        </tr>
        <tr>
        <td height="36" class="adbox_td03"><a href="index.php?ctl=user&act=reg">还不是会员？</a></td>
            </tr>
        </table>
        </form>
    <script type="text/javascript">
    $(function(){
       $('#btnlogin').click(function(){
            if($('#username').val()!="" && $('#password').val()!=""){
                $.jBox.tip('正在验证...','loading');
                $('#form1').submit();
               // var param = $('#form1').serialize();
/*                $.post("index.php?{{$TIN_CTL}}=user&{{$TIN_ACT}}=ChkLogin",param,function(res){
                    if(res.code=='success'){
                        $.jBox.tip("登录成功。");
                        window.open(res.tourl,"_top");
                    }else{
                        $.jBox.tip(res.msg);
                    }
                },"json");  */
            }else{
                $.jBox.tip('请填写用户名或密码','登录');
            }
            return false;
        })
        $('#chkcode').click(function(){
            $(this).attr("src","res/vcode.php?rnd="+Math.random());
        });
    });
    </script>
    </div>
</div>


<div class="w1002 index_con01">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="33%" class="index_wylc"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="40%" height="94" align="right"><img src="res/images/index_wylc.png"  /></td>
                    <td width="60%" align="left" valign="top" class="index_wylc_td"><a href="index.php?ctl=deal">我要理财</a><p>年化利率10%+</p><p>专业风控，本息保障</p></td>
                </tr>
            </table>
        </td>
        <td width="33%" class="index_wylc"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="40%" height="94" align="right"><img src="res/images/index_wyjk.png"  /></td>
                    <td width="60%" align="left" valign="top" class="index_wylc_td"><a href="index.php?ctl=borrow">我要借款</a>
                        <p>无抵押无担保，信用借款</p><p>月入4000，最高可申50万</p></td>
                </tr>
            </table>
        </td>
        <td width="33%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="40%" height="94" align="right"><img src="res/images/index_zjaq.png" /></td>
                    <td width="60%" align="left" valign="top" class="index_wylc_td"><a href="#">资金安全</a>
                        <p>第三方支付平台</p><p>资金完全监管</p></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</div>

{{include file="footer.tpl"}}